from flask import Flask
from app.views.login import login_bp
from app.views.users import bp_users
from app.views.classes import bp_classes
from app.views.students import bp_students

app = Flask(__name__)

url_prefix = "/api/admin"
app.register_blueprint(login_bp, url_prefix=url_prefix)
app.register_blueprint(bp_users, url_prefix=url_prefix + "/user")
app.register_blueprint(bp_classes, url_prefix=url_prefix + "/classes")
app.register_blueprint(bp_students, url_prefix=url_prefix + "/students")


@app.route('/')
def hello_world():
    return "xsxx-->Hello World!"


if __name__ == '__main__':
    app.run(host='127.0.0.1', port=5000)
